package com.diandian.backend.client.param;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class ClientFunctionSettingPageParam implements Serializable {

	private Integer pageNum;
	private Integer pageSize;
	private String clientId;

	public void check(){
		if(this.pageNum == null || this.pageNum < 1 || this.pageSize == null || this.pageSize < 1){
			throw new DefaultException("分页参数不合法");
		}
		if(this.clientId == null || "".equals(this.clientId)){
			throw new DefaultException("客户端id不能为空");
		}
	}


	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}
}
